﻿using System;
using System.Collections.Generic;
using System.Web.Script.Serialization;

namespace AspNetInfo.Diagnostics
{
    public enum TestStatus
    {
        New = 0,
        Passed,
        Warning,
        Failed
    }
    public class TestResult
    {
        private IList<string> _messages = new List<String>();

        public string Name { get; set; }
        public TestStatus Status { get; set; }
        public IList<string> Messages { get {return _messages; } }

        [ScriptIgnore]
        public Exception Error { get; set; }
    }


}